using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for BasePage
/// </summary>
public class BasePage : System.Web.UI.Page
{
    public BasePage()
    {

    }

    public AdminServices.HSDPrincipal CurrentPrincipal
    {
        get
        {

            AdminServices.HSDIdentity id = new AdminServices.HSDIdentity();
            id.UserId = Guid.Empty.ToString();
            id.Name = "me";
            id.Password = "!password01";
            id.HCUID = "abc123";
            //System.Collections.Generic.List<string> roles = new System.Collections.Generic.List<string>();
            //roles.Add("Client");
            //roles.Add("Administrator");
            string[] roles = new string[2];
            roles[0] = "client";
            roles[1] = "Administrator";
            AdminServices.HSDPrincipal prin = new AdminServices.HSDPrincipal();
            prin.HSDIdentity = id;
            prin.Roles = roles;
            return prin;
            // return (AdminServices.HSDPrincipal)Session["CurrentPrincipal"];
        }
    }
}
